package com.zbkj.service.service;

import com.github.pagehelper.PageInfo;
import com.zbkj.common.model.shop.EbIndustryCategory;
import com.zbkj.common.request.EbIndustryCategoryRequest;

import java.util.List;
import java.util.Map;

public interface EbIndustryCategoryService {


    /**
     * 新增行业分类
     *
     * @param category 行业分类对象
     * @return 是否成功
     */
    public EbIndustryCategory add(EbIndustryCategory category);

    /**
     * 更新行业分类
     *
     * @param category 行业分类对象
     * @return 是否成功
     */
    public EbIndustryCategory update(EbIndustryCategory category);

    /**
     * 删除行业分类
     *
     * @param id 行业分类ID
     * @return 是否成功
     */
    public boolean delete(Integer id);

    /**
     * 根据ID查询行业分类
     *
     * @param id 行业分类ID
     * @return 行业分类对象
     */
    public EbIndustryCategory getById(Integer id);

    /**
     * 分页查询
     *
     * @return
     */
    public PageInfo<EbIndustryCategory> getPage(EbIndustryCategoryRequest request);
    public List<EbIndustryCategory> findByList(EbIndustryCategoryRequest request);

    List<String> getIndustryList(List<Integer> idList);

    List<Map<String,Object>> getLabelList(EbIndustryCategoryRequest ebIndustryCategoryRequest);
}
